<?php
use yii\helpers\Html;
use yii\helpers\Url;
use backend\models\course\Course;
$course = Course::Coursermd();
?>
<div dy-v="00-00-10-00" id="EX_courseRecommendation" class="ibox">
	<div class="ibox-in">
		<div class="ibox-head">
			<div class="ibox-tit-text">课程推荐</div>
		</div>
		<div class="ibox-body">
			<ul class="row course-recom-list">
			<?php foreach ($course as $key => $value) { ?>
				<div class="item">
					<div class="column-col-l">
						<a class="col-in" href="<?php echo Url::to(['course/course-detail']);?>?course_id=<?= Html::encode($value['course_id']) ?>" target="_blank">
							<img src="http://files.bwphp.com/file/image/show/120/60?path=<?= Html::encode($value['course_thumb']) ?>" alt="">
						</a>
					</div>
					<div class="column-col column-full">
						<div class="col-in">
							<h3>
								<a href="<?php echo Url::to(['course/course-detail']);?>?course_id=<?= Html::encode($value['course_id']) ?>" target="_blank"><?= Html::encode($value['course_name']) ?></a>
							</h3>
							<p class="tearcher-name"><?= Html::encode($value['teacher']['teacher_name']) ?></p>
						</div>
					</div>
				</div>
			<?php }?>
			</ul>
		</div>
	</div>
</div>